package domain;


/**
 * @purpose
 * 封装请求头数据和响应头数据
 *
 */
public class Header {



    private String name;  //头数据的键
    private String value; //头数据的值

    public Header() {
    }

    public Header(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    @Override
    public String toString() {
        return this.getName() + ": " + this.getValue() + "\r\n";
    }
}
